package com.car.rental.order.service;

import com.car.rental.common.core.response.ResponseResult;
import com.car.rental.order.entity.PaymentRecord;
import java.util.Map;

public interface AlipayService {
    /**
     * 创建支付宝支付订单
     */
    ResponseResult<String> createPayment(PaymentRecord payment);

    /**
     * 处理支付宝回调
     */
    void handleCallback(Map<String, String> params);

    /**
     * 验证支付宝回调签名
     */
    boolean verifySign(Map<String, String> params);

    /**
     * 查询支付状态
     */
    ResponseResult<Boolean> queryPaymentStatus(String paymentNo);
} 